package com.three.digit.group;

import com.three.digit.model.Point;


/**
 * It only has three keys, such as: 0 1 or 2
 */
public class O12NumbersGroup extends BasicGroup
{
    public O12NumbersGroup (boolean useBasicData)
    {
        super (useBasicData);
    }

    @Override
    public String[] hashKey (Point point)
    {
        int mod = point.sum () % 3;

        return new String[]
        { mod + "" };
    }
}
